﻿<html>
<head>
<meta http-equiv="content-type" content="text/xml; charset=UTF-8"> 
</head>
<body>
<h2>问答分类</h2>
   <?php  foreach($allcategory as $pitem) { ?>
		
       <h3><a href="http://127.0.0.1/CodeIgniter/questions/ptags/<?= $pitem['pid'] ?>"><?php print $pitem['pname']; ?></a></h3>
       
		 <?php foreach($pitem['child'] as $citem) { ?>
		 
  	    <a href="http://127.0.0.1/CodeIgniter/questions/ctags/<?= $citem['cid'] ?>"><?php print $citem['cname']; ?></a><br>	     
  	    
	<?php } ?>
  <?php } ?>
</body>	
</html>